package com.sc.nft.entity.vo;

import com.alibaba.fastjson.annotation.JSONField;
import com.fasterxml.jackson.annotation.JsonProperty;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.util.Date;

@Data
public class OneClickImportVO {
    @ApiModelProperty("藏品编号，必填")
    @JsonProperty("gNum")
    private String gNum;

    @ApiModelProperty("买⼊时间，毫秒时间戳，必填")
    private Long boughtAt;

    @ApiModelProperty("买⼊价格（单位元），必填")
    private Float cost;

    @ApiModelProperty("藏品名称，必填")
    private String name;

    @ApiModelProperty("藏品图片，必填")
    private String imageUrl;

    public void setBoughtAt(Date boughtAt) {
        this.boughtAt = boughtAt.getTime();
    }
}
